import request from '@/axios/axios.js'
//物料
export const materialApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataMaterial/getAll',
        data: params
    })
}

//产品编辑
export const editApi = (params) => {
    return request({
        method: 'put',
        url: '/api/basedataProduct/update',
        data: params
    })
}
//产品新增
export const addApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProduct/save',
        data: params
    })
}
// 删除
export const deleteApi = (params) => {
    return request({
        method: 'delete',
        url: '/api/basedataProduct/delete',
        data: params
    })
}
//产品查询
export const productApi = (params) => {
    return request({
        method: 'post',
        url: '/api/basedataProduct/getPage',
        data: params
    })
}
